package com.wanmait.happyheating.service.impl;

import com.wanmait.happyheating.pojo.MaterialsUse;
import com.wanmait.happyheating.mapper.MaterialsUseMapper;
import com.wanmait.happyheating.service.MaterialsUseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 耗材使用表 服务实现类
 * </p>
 *
 * @author yuQianTao
 * @since 2021-05-13
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class MaterialsUseServiceImpl extends ServiceImpl<MaterialsUseMapper, MaterialsUse> implements MaterialsUseService {
@Resource
private MaterialsUseMapper materialsUseMapper;

    @Override
    public List<MaterialsUse> findByOrderId(Integer id) {
        return materialsUseMapper.findByOrderId(id);
    }
}
